<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_goods_refund-update-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<input name="id" th:value="${shopGoodsRefund.id}"
			type="hidden">
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单总编号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderTotalCode"
					th:value="${shopGoodsRefund.orderTotalCode}" name="orderTotalCode"
					placeholder="请输入订单总编号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单子编号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderChildCode"
					th:value="${shopGoodsRefund.orderChildCode}" name="orderChildCode"
					placeholder="请输入订单子编号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商户id：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="merchantsId"
					th:value="${shopGoodsRefund.merchantsId}" name="merchantsId"
					placeholder="请输入商户id">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款单号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="refundCode"
					th:value="${shopGoodsRefund.refundCode}" name="refundCode"
					placeholder="请输入退款单号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="supplyId"
					th:value="${shopGoodsRefund.supplyId}" name="supplyId"
					placeholder="请输入供应商ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供货来源 (1.商户;2.供应商)：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="refundToType"
					th:value="${shopGoodsRefund.refundToType}" name="refundToType"
					placeholder="请输入供货来源 (1.商户;2.供应商)">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户id：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberId"
					th:value="${shopGoodsRefund.memberId}" name="memberId"
					placeholder="请输入用户id">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">收货地址ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="addressId"
					th:value="${shopGoodsRefund.addressId}" name="addressId"
					placeholder="请输入收货地址ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="goodsId"
					th:value="${shopGoodsRefund.goodsId}" name="goodsId"
					placeholder="请输入商品ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">总订单金额：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="totalPrice"
					th:value="${shopGoodsRefund.totalPrice}" name="totalPrice"
					placeholder="请输入总订单金额">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">申请退款金额：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="applyRefundPrice"
					th:value="${shopGoodsRefund.applyRefundPrice}" name="applyRefundPrice"
					placeholder="请输入申请退款金额">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">实际退款金额：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="actualRefundPrice"
					th:value="${shopGoodsRefund.actualRefundPrice}" name="actualRefundPrice"
					placeholder="请输入实际退款金额">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款方式 0:微信，1：支付宝：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="refundType"
					th:value="${shopGoodsRefund.refundType}" name="refundType"
					placeholder="请输入退款方式 0:微信，1：支付宝">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败  50:撤销退款：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="refundState"
					th:value="${shopGoodsRefund.refundState}" name="refundState"
					placeholder="请输入退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败  50:撤销退款">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退货原因：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="refundWhy"
					th:value="${shopGoodsRefund.refundWhy}" name="refundWhy"
					placeholder="请输入退货原因">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款记录说明：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="refundInstructions"
					th:value="${shopGoodsRefund.refundInstructions}" name="refundInstructions"
					placeholder="请输入退款记录说明">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="refundTime"
					th:value="${#dates.format(shopGoodsRefund.refundTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="refundTime" placeholder="请输入退款时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="deleteFlag"
					th:value="${shopGoodsRefund.deleteFlag}" name="deleteFlag"
					placeholder="请输入">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="createTime"
					th:value="${#dates.format(shopGoodsRefund.createTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="createTime" placeholder="请输入">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="updateTime"
					th:value="${#dates.format(shopGoodsRefund.updateTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="updateTime" placeholder="请输入">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_goods_refund-update">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
                 			laydate.render({
				elem : '#refundTime',
				type : 'datetime'
			});
  			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
 
			//监听提交
			form.on('submit(shop_goods_refund-update)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/goods_refund/update", data.field);
				return false;
			});
		});
	</script>
</body>
</html>